package com.shyroke.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.shyroke.entity.XiaoShuo;

public interface XiaoShuoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(XiaoShuo record);

    int insertSelective(XiaoShuo record);

    XiaoShuo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(XiaoShuo record);

    int updateByPrimaryKey(XiaoShuo record);

    /**
     * 根据用户名和权限查找小说
     * @param userId
     * @param quanxian
     * @return 小说名集合
     */
	List<String> selectByIdAndQuanxian(@Param("userId")Integer userId, @Param("quanxian")String quanxian);

	/**
	 * 根据用户id和小说名查找小说
	 * @param userId
	 * @param wenjianjia
	 */
	XiaoShuo selectByIdAndFileName(@Param("userId")Integer userId, @Param("fileName")String wenjianjia);
}